﻿
@{
    ViewData["Title"] = "客户管理";
    Layout = "~/Views/Shared/_Layout_Admin.cshtml";
}
<style type="text/css">
    .file_bar {
        margin: 0;
        left: 15px;
        right: 0;
        width: 200px;
        position: absolute;
        top: 0;
        height: 0;
        padding: 0;
        margin: 0;
        opacity: .8;
        color: #fff;
        background: none repeat scroll 0 0 #000;
        transition: all .5s;
        -moz-transition: all .5s;
        -webkit-transition: all .5s;
        -o-transition: all .5s;
        overflow: hidden
    }

        .file_bar a {
            color: #fff;
            position: absolute;
            right: 10px
        }

    .file_hover {
        height: 30px;
        cursor: pointer
    }

    .file_del {
        background: url(/images/delete_white.png) no-repeat scroll 0 0 transparent;
        width: 18px;
        height: 18px;
        display: inline;
        -moz-user-select: none;
        position: absolute;
        right: 3px;
        margin-top: 4px;
    }

    .uploader-list .item {
        width: 200px;
    }

        .uploader-list .item img {
            width: 200px;
        }
</style>
<div class="row">
    <div class="col-md-12">
        <div class="box box-primary">
            <div class="box-header with-border">
                <h3 class="box-title">@ViewData["Title"]</h3>
                <div class="pull-right box-tools">

                    <button id="btnAdd" title="" class="btn btn-primary" type="button" data-original-title="新增客户" data-toggle="tooltip" data-widget="">
                        <i class="fa fa-plus-circle"></i>&nbsp;&nbsp;新增
                    </button>
                    <button id="btnDelete" title="" class="btn btn-danger" type="button" data-original-title="删除客户" data-toggle="tooltip" data-widget="">
                        <i class="fa fa-times"></i>&nbsp;&nbsp;删除
                    </button>
                </div>
            </div>
            <div class="box-body">
                <div class="table-scrollable">
                    <table class="table table-striped table-bordered table-hover dataTable no-footer" role="grid" aria-describedby="sample_2_info">
                        <thead>
                            <tr role="row">
                                <th class="table-checkbox" style="width:40px;text-align:center;"><input id="checkAll" class="group-checkable" type="checkbox"></th>
                                <th tabindex="0" aria-label="">
                                    客户名称
                                </th>
                                <th tabindex="0" aria-label="">
                                    客户logo
                                </th>
                                <th tabindex="0" aria-label="">
                                    创建时间
                                </th>
                                <th tabindex="0" style="width: 230px;" aria-label="">
                                    操作
                                </th>
                            </tr>
                        </thead>
                        <tbody id="tableBody"></tbody>
                    </table>
                    <div class="paging-toolbar">
                        <ul id="grid_paging_part"></ul>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@Html.Partial("_EditCustomer")
@section scripts{
    <script src="~/lib/webuploader-0.1.5/webuploader.min.js"></script>
    <link href="~/lib/webuploader-0.1.5/webuploader.css" rel="stylesheet" />
    <script src="~/Views/Admin/Customers.js"></script>
}

